home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / zmdm / mail < prev    next >
Internet Message Format  |  1993-06-26  |  2KB

  1. Date:  20-Jul-87 21:51 EDT
  2. From:  Chuck Forsberg [70007,2304]
  3. Subj:  ZMODEM BUG
  4.  
  5. A bug has been discovered in the ZMODEM protocol description and
  6. in the "rzfile" routine in rz.c.  This affects Omen software previous
  7. to 7-20-87 and probabaly other ZMODEM programs as well.
  8.  
  9. When the reciever detects a CRC error near the end of a file, it
  10. sends a ZRPOS frame to the sender.  If, in the meantime, the
  11. sender has sent a ZEOF frame, the receiver will reject the ZEOF because
  12. it has an incorrect offset, and two ZRPOS frames will have been
  13. sent for one error.  This may trigger a race condition that aborts
  14. the transfer.
  15.  
  16. Repeat by:  Send some files from a 386 PC-AT at 19200 bps to an AT or
  17. CLONE with reception to an extended memory ramdisk.  The firmware
  18. supporting the extended memory ramdisk causes lost interrupts at
  19. 19200 bps, so an error is induced each time the receiver writes to
  20. disk while data is streaming in.  Under these conditions, most frames
  21. must be retransmitted.  At the end of the file, the error count
  22. suddenly starts to increase until the transfer fails.  This syndrome
  23. may manifest itself under other conditions, but infrequently.
  24.  
  25. Correction: in the "rzfile" function, an ZEOF with an incorrect address
  26. should be ignored.
  27.  
  28. if (rclhdr(Rxhdr) != rxbytes) {
  29.         /*
  30.          * Ignore eof if it's at wrong place - force
  31.          *  a timeout because the eof might have gone
  32.          *  out before we sent our zrpos.
  33.          */
  34.  
  35.         errors = 0;  goto nxthdr;
  36. }
  37.  
  38.         --- Uploaded Mon Jul 20 18:46:53 1987
  39.